package com.wallet.service;

import java.util.List;
import com.wallet.entity.result.JsonResult;

public interface BaseService<T,TExample> {
	
	public int save(T t);
	
	public int insertBatch(List<T> list);
	
	public int del(Integer id);
	
	public int upd(T t);
	
	public T getDetail(Integer id);
	
	public JsonResult showPage(Integer page, Integer size);
	
	public Integer getCount();
	
	public List<T> selectAll();

	public List<T> selectByExample(TExample example);
}
